
const app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    faver: [],
    moreshow: false,
    moretit: true,
    issc: '收藏',
    list: [],
    job: [],
    jobList: [],
    id: '',
    isClick: false,
    jobStorage: [],
    jobId: '',
    collectNum: 0
  },
  go_jobInfo: function (t) {
    var z = t.currentTarget.dataset.zdy,
      a = t.currentTarget.dataset.index,
      i = this.data.list;
    i[a].zwk_jishu++, this.setData({
      list: i
    }), wx.navigateTo({
      url: "../search/jobInfo/jobInfo?zdy=" + z 
    });
  },

  
  gozx: function (e) {
    wx.setStorageSync('zwjs', e.currentTarget.dataset.res);
    wx.navigateTo({
      url: '../../xiaoneng/xiaoneng',
    })
  },
  gohome: function (e) {
    wx.navigateTo({
      url: '../zwjs/zwjs',
    })
  },




  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    console.log(wx.getStorageSync('theJson'));
    let theJson = wx.getStorageSync('theJson')
    that.setData({
      list: theJson
    })
    console.log(that.data.list)
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

   /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    var that = this;
    var area = wx.getStorageSync('area')
    var agent = wx.getStorageSync('agent')
    var page = wx.getStorageSync('page')
    return {
      title: '2022山东三支一扶职位查询',
      path: 'pages/zwjs/zwjs/zwjs?area=' + area + '&agent=' + agent + '&page=' + page
    }

  },
  /**分享到朋友圈*/
  onShareTimeline: function () {
    var that = this;
    var area = wx.getStorageSync('area')
    var agent = wx.getStorageSync('agent')
    var page = wx.getStorageSync('page')
    return {
      title: '2022山东三支一扶职位查询',
      path: 'pages/zwjs/zwjs/zwjs?area=' + area + '&agent=' + agent + '&page=' + page
    }
  }
})